package cn.pconline.autoclub.util;

/**
 * EncodeUtils for encode the data use in browser prevent attack like XSS ...
 *
 * @author cuiyulong@pconline.com.cn
 * @author chenxiaohu@pconline.com.cn
 */
public class EncodeUtils extends org.gelivable.web.EncodeUtils {

    public static String encodeForHTML(String input, int sourceAgent) {
        if (input == null || sourceAgent == 1) {
            return input;
        }
        return encodeForHTML(input);
    }
    public static String encodeForHTML(String input, boolean isEnode) {
        if (input == null || !isEnode) {
            return input;
        }
        return encodeForHTML(input);
    }
    public static String encodeForHTMLFilterNull(String input) {
        if (input == null) {
            return input;
        }
        return encodeForHTML(input);
    }
}
